package com.thread.sychronized;

import java.util.concurrent.Callable;

/**
 * @author wangyingjie
 * @date
 * @remark
 */
public class CallableThread implements Callable {
    @Override
    public Object call() throws Exception {
        int i = 0;
        for (; i < 100; i++) {
            System.out.println(Thread.currentThread().getName()+"执行callable的线程体"+i);
        }
        return i;
    }
}
